package lagou.homework.lagouhomework.Unit4.code.q2;

import java.io.File;

public class TestFiles {
    public static void main(String[] args) {
        //  创建一批目录
        Folders.createFolders("e:/a/b/c/d/e/");
        Folders.createFolders("e:/a/b/c/d/f");
        // 创建一批文件
        Files.createFiles("e:/a/","f1");
        Files.createFiles("e:/a/b/","f2");
        Files.createFiles("e:/a/b/","f3");
        Files.createFiles("e:/a/b/c/d/","f4");
        Files.createFiles("e:/a/b/c/d/e","f5");
        Files.createFiles("e:/a/b/c/d/e","f6.txt");
        Files.createFiles("e:/a/b/c/d/e","f7.avi");
        // 展示目录下的子目录及文件
        Folders.show(new File("e:/a"));
        // 删除指定目录及其子目录所有文件及目录
        Folders.deleteFolderFiles("e:/a");


    }


}
